<?php
class Zendvn_View_Helper_CmsIconButton extends Zend_View_Helper_Abstract{
	
	public function cmsIconButton($imgLink,$link = null,$title=null,$blank=null){
		
		if($link != null){
			$xhtml = ' <a href="' . $link . '" '.$blank.' >
	                      <img src="' . $imgLink  . '" title="' . $title .'" > 
	                   </a>';
			
		}else{                        
		 	$xhtml = '<img src="' . $imgLink . '" title="' . $title . '">';
		} 
		 return $xhtml;
	}
}